﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

/// <summary>
/// Summary description for SessionValidation
/// </summary>
public class SessionValidation
{
    private string _storedUserAgent;
    private string _newUserAgent;

	public SessionValidation(string storedUserAgent, string newUserAgent)
	{
		_storedUserAgent = storedUserAgent;
        _newUserAgent = newUserAgent;
	}

    public bool ValidateSession() 
    {
        if(_storedUserAgent == _newUserAgent)
        {
            return true;
        }

        return false;
    }
}